define(["vue","text!showHtml","jquery"],function(vue,html,$){

    return vue.extend({
        template: html,
        data:function(){
            return {
                dialogFormVisible:false,
                formLabelWidth: '80px',
                info:[]
            };
        },
        beforeCreate:function(){
            var taskComp = this;
            var name =this.$route.query.name;
            $.ajax({
                url:"/scheduling/show?name="+name,
                type:"get",
                dataType:"json",
                success:function(data){
                    if(data.code == '0'){
                        taskComp.info = data.data;
                    }else{
                        alert(data.data);
                        this.$router.go(-1);
                    }
                }
            });
        }
    });
})